package router

import (
	"github.com/gin-gonic/gin"
	"yk-travel-social/client/middle"
	"yk-travel-social/pkg"
)

func LoadRouter(r *gin.Engine) {
	r.POST("/alipayBack", AlipayBack)
	r.POST("/login", Login)
	r.Use(middle.Middle())
	r.Use(pkg.JWTAuth("2209a"))
	r.POST("/search", Search)
	r.POST("/showInfo", ShowInfo)
	r.POST("/addPurchaser", AddPurchaser)
	r.POST("/buyTicket", BuyTicket)
	r.POST("/showOrder", ShowOrder)
}
